<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Timesheets extends MY_Controller {

	public function index(){
		$this->load->view('timesheet');
	}

	/*
	 * get timesheet
	 */
	public function getTimesheet(){
		$this->load->model('timesheet');
		$results = $this->timesheet->getTimesheet();
		echo json_encode($results);
	}

	/*
	 * save timesheet
	 */
	public function saveTimesheet(){
		$this->load->model('timesheet');
		$results = $this->timesheet->saveTimesheet();
		echo json_encode($results);
	}
}